package com.tj.collection.controller.lending;

import com.fqgj.common.api.annotations.ParamsValidate;
import com.tj.collection.bean.ModuleResponse;
import com.tj.collection.common.RequestLocalInfo;
import com.tj.collection.controller.lending.response.CollectionOverdueStatementResponse;
import com.tj.collection.service.param.CollectionOverdueStatementParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/collection")
public class CollectionOverdueStatmentController {

    /**
     * 逾期报表
     *
     * @param collectionOverdueStatementParam
     * @return
     */
    @RequestMapping("/collectionoverdueStatement/list")
    @ParamsValidate
    public ModuleResponse collectionOverdueStatement(@RequestBody CollectionOverdueStatementParam collectionOverdueStatementParam) {
        collectionOverdueStatementParam.setProductType(RequestLocalInfo.getCurrentAdmin().getProductCategory());

        CollectionOverdueStatementResponse response = new CollectionOverdueStatementResponse(new ArrayList<>());

        return new ModuleResponse<>(response);
    }


}
